package com.somnus.androidkotlindemo.bean

import com.chad.library.adapter.base.entity.AbstractExpandableItem
import com.chad.library.adapter.base.entity.MultiItemEntity
import com.somnus.androidkotlindemo.adapter.ExpandableListAdapter

/**
 * Created by Somnus on 2019/5/27.
 *  如果不想使用继承，可以只实现IExpandable接口
 * AbstractExpandableItem只是个帮助类
 */
class Level0Item(var title: String, var subTitle: String) : AbstractExpandableItem<Level1Item>(), MultiItemEntity {


    override fun getLevel(): Int {
        return 0
    }

    override fun getItemType(): Int {
      return  ExpandableListAdapter.TYPE_LEVEL_0
    }


}